#include "pch.h"

UniformCameraProjectionMatrixUpdateCallback::UniformCameraProjectionMatrixUpdateCallback(osg::Camera *camera)
	:mCamera(camera)
{

}

void UniformCameraProjectionMatrixUpdateCallback::operator()(osg::Uniform* uniform, osg::NodeVisitor* visitor)
{
	uniform->set(osg::Matrixf(mCamera->getProjectionMatrix()));
}